From ecb94e0dc6ca4870abe781b3fc73a90937fd097f Mon Sep 17 00:00:00 2001 From: worktycho Date: Tue, 22 Dec 2015 16:00:17 +0000 Subject: Ignore == if followed by \ Ignore the space before == rule if immediately followed by a \. If it is imediatly followed by a \, then this is likely the base64 padding at the end of a certificate, which is followed by \n. --- src/CheckBasicStyle.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua index 3f0d2bd45..81968688c 100755 --- a/src/CheckBasicStyle.lua +++ b/src/CheckBasicStyle.lua @@ -194,7 +194,7 @@ local g_ViolationPatterns = -- Check spaces around "==", "<=" and ">=": {"==[a-zA-Z0-9]+", "Add space after =="}, - {"[a-zA-Z0-9]+==", "Add space before =="}, + {"[a-zA-Z0-9]+==[^\\]", "Add space before =="}, {"<=[a-zA-Z0-9]+", "Add space after <="}, {"[a-zA-Z0-9]+<=", "Add space before <="}, {">=[a-zA-Z0-9]+", "Add space after >="}, -- cgit v1.2.3 From 76cd72386755ddae4a6ff3b8476327488f4220e2 Mon Sep 17 00:00:00 2001 From: worktycho Date: Tue, 22 Dec 2015 15:40:10 +0000 Subject: Added GeoTrust Root Certificate --- src/Protocol/MojangAPI.cpp | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/Protocol/MojangAPI.cpp b/src/Protocol/MojangAPI.cpp index 4747ace72..dfbf9a568 100644 --- a/src/Protocol/MojangAPI.cpp +++ b/src/Protocol/MojangAPI.cpp @@ -42,10 +42,33 @@ const int MAX_PER_QUERY = 100; static const AString & GetCACerts(void) { static const AString Cert( - // Equifax root CA cert + // GeoTrust root CA cert // Currently used for signing *.mojang.com's cert // Exported from Mozilla Firefox's built-in CA repository "-----BEGIN CERTIFICATE-----\n" + "MIIDVDCCAjygAwIBAgIDAjRWMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT\n" + "MRYwFAYDVQQKEw1HZW9UcnVzdCBJbm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V\n" + "5fEWCRE11azbJHFwLJhWC9kXtNHjUStedejV0NxPNO3CBWaAocvmMw==\n" + "-----END CERTIFICATE-----\n\n" + + // Equifax root CA cert + // Exported from Mozilla Firefox's built-in CA repository + "-----BEGIN CERTIFICATE-----\n" "MIIDIDCCAomgAwIBAgIENd70zzANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJV\n" "UzEQMA4GA1UEChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2Vy\n" "dGlmaWNhdGUgQXV0aG9yaXR5MB4XDTk4MDgyMjE2NDE1MVoXDTE4MDgyMjE2NDE1\n" -- cgit v1.2.3